package indi.zhifa.recipe.bailan5.busy.feign;
import indi.zhifa.recipe.bailan.framework.common.entity.dto.RestResponse;
import org.springframework.stereotype.Component;

import java.math.BigInteger;

@Component
public class MathFeignHystrix implements IMathFeignCaller{

    @Override
    public RestResponse<BigInteger> fibonacii(int n) {
        return RestResponse.error("服务器正忙");
    }

    @Override
    public RestResponse<Double> aPlusB(double a, double b) {
        return RestResponse.error("服务器正忙");
    }

    @Override
    public RestResponse<String> timeoutTest(int t) {
        return RestResponse.error("服务器正忙");
    }
}
